package com.sui.bigdata.rtcadmin.show;

import javax.websocket.*;


/**
 * @author YongChen
 * @date 2020/2/28 15:48
 * @description
 * @email yong_chen@sui.com
 */

public class SelectResClient {
    private String eid;
    private Session session;

    public String getEid() {
        return eid;
    }

    public void setEid(String eid) {
        this.eid = eid;
    }

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }

    public SelectResClient(String eid, Session session) {
        this.eid = eid;
        this.session = session;
    }

    @Override
    public int hashCode() {
        return (eid + "_" + session.getId()).hashCode();
    }

    @Override
    public boolean equals(Object o) {
        if (o == null) {
            return false;
        }
        if (this == o) {
            return true;
        }
        if (o instanceof SelectResClient) {
            return this.hashCode() == o.hashCode();
        }
        return false;
    }
}
